use serde::{Serialize, Deserialize};



#[derive(Serialize,Deserialize,Debug,Clone,sqlx::FromRow)]
pub struct Guide{
    pub id:i32,
    pub author_id: i32,
    pub guide_type: String,
    pub content: String,
    pub image:String,
    pub comments: Vec<i32>,
    pub status: String,
}
#[derive(Serialize,Deserialize,Debug,Clone)]
pub struct CreateGuide{
    pub guide_type: String,
    pub content: String,
    pub image:String,
}

#[derive(Serialize,Deserialize,Debug,Clone)]
pub struct UpdateGuide{
    pub id:i32,
    pub guide_type: String,
    pub content: String,
    pub image:String,
}

#[derive(Serialize,Deserialize,Debug,Clone)]
pub struct UpdateGuide2{
    pub id:i32,
    pub guide_type: String,
    pub content: String,
}